import java.util.Random;

import problems.TSP;
import utils.LinkedList;
import utils.NodeContainedData;
import environment.Environment;


public class LifeSimulation {
	public static void main(String[] args)
	{
		
		/** create enviroment */
		Environment.init(new TSP());
		/** start world */
		Environment.begin();
		
//		LinkedList<NodeContainedData> testList = new LinkedList<NodeContainedData>();
//		java.util.LinkedList<NodeContainedData> testList2 = new java.util.LinkedList<NodeContainedData>();
//		Random rand = new Random();
//		
//		System.out.println("start");
//		long startTime = System.currentTimeMillis();
//		for(int i = 0; i < 5000000; i++)
//		{
//			testList2.addLast( new NodeContainedData(rand.nextInt()) );			
//		}
//		
//		long endTime = System.currentTimeMillis();
//		
//		System.out.println("duration:" + (endTime - startTime));		
//		startTime = endTime;
//		for(int i = 0; i < 5000000; i++)
//		{
//			testList2.addLast( new NodeContainedData(rand.nextInt()) );			
//		}
//		endTime = System.currentTimeMillis();
//		System.out.println("duration:" + (endTime - startTime));
		
	}
}
